/******************************************************************************
    myBoard is a port of MacOS X dashboard application for windows.
    Copyright (C) 2007,2008  by Yann ALET
    Email : yann.alet@gmail.com

    myBoard is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    myBoard is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
****************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;
using System.Windows.Media.Imaging;

namespace myBoard.App.Portfolio
{
    public class Datas
    {
        ObservableCollection<Project> _myProjects;

        public ObservableCollection<Project> MyProjects
        {
            get { return _myProjects; }
        }

        public Datas()
        {
            _myProjects = new ObservableCollection<Project>();

            #region Veloce

            string veloce_name = "Veloce";
            string veloce_desc = "bla bla bla";
            string veloce_client = "Me";
            List<string> veloce_tech = new List<string>();
            veloce_tech.Add("aa");
            veloce_tech.Add("bb");
            veloce_tech.Add("cc");
            List<string> veloce_urls = new List<string>();
            BitmapSource veloce_thumb = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.eurosport.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\portfolio_layout_by_rocksound101.jpg"));
            BitmapSource veloce_fullimage = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.eurosport.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\portfolio_layout_by_rocksound101.jpg"));
            ProjectStatus veloce_status = ProjectStatus.StandBy;
            DateTime veloce_date = DateTime.Now;
            Project veloce_project = new Project(veloce_name, veloce_desc, veloce_client, veloce_tech, veloce_urls,
                veloce_thumb, veloce_fullimage, veloce_status, veloce_date);

            #endregion

            #region NewsVore

            string newsvore_name = "NewsVore";
            string newsvore_desc = "bla bla bla";
            string newsvore_client = "Me";
            List<string> newsvore_tech = new List<string>();
            newsvore_tech.Add("aa");
            newsvore_tech.Add("bb");
            newsvore_tech.Add("cc");
            List<string> newsvore_urls = new List<string>();
            BitmapSource newsvore_thumb = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.fnac.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\Portfolio_V4_by_amandhingra.jpg"));
            BitmapSource newsvore_fullimage = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.fnac.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\Portfolio_V4_by_amandhingra.jpg"));
            ProjectStatus newsvore_status = ProjectStatus.StandBy;
            DateTime newsvore_date = DateTime.Now;
            Project newsvore_project = new Project(newsvore_name, newsvore_desc, newsvore_client, newsvore_tech, newsvore_urls,
                newsvore_thumb, newsvore_fullimage, newsvore_status, newsvore_date);

            #endregion

            #region SYSTRAN

            string systran_name = "SYSTRAN 6";
            string systran_desc = "bla bla bla";
            string systran_client = "Me";
            List<string> systran_tech = new List<string>();
            systran_tech.Add("aa");
            systran_tech.Add("bb");
            systran_tech.Add("cc");
            List<string> systran_urls = new List<string>();
            BitmapSource systran_thumb = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.lci.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\RX_Portfolio_by_roboflexx.jpg"));
            BitmapSource systran_fullimage = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.lci.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\RX_Portfolio_by_roboflexx.jpg"));
            ProjectStatus systran_status = ProjectStatus.StandBy;
            DateTime systran_date = DateTime.Now;
            Project systran_project = new Project(systran_name, systran_desc, systran_client, systran_tech, systran_urls,
                systran_thumb, systran_fullimage, systran_status, systran_date);

            #endregion

            #region FNAC

            string fnac_name = "Fnac";
            string fnac_desc = "bla bla bla";
            string fnac_client = "Me";
            List<string> fnac_tech = new List<string>();
            fnac_tech.Add("aa");
            fnac_tech.Add("bb");
            fnac_tech.Add("cc");
            List<string> fnac_urls = new List<string>();
            BitmapSource fnac_thumb = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.eurosport.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\digital_portfolio_trial_one_by_kocho.jpg"));
            BitmapSource fnac_fullimage = ResourcesAccess.GetBitmapImageFromResouce("myBoard.App.Portfolio.Images.eurosport.jpg");// new BitmapImage(new Uri(@"D:\Mes documents\Mes Projets\TFS\myBoard\myBoard.App\Portfolio\myBoard-Portfolio\digital_portfolio_trial_one_by_kocho.jpg"));
            ProjectStatus fnac_status = ProjectStatus.StandBy;
            DateTime fnac_date = DateTime.Now;
            Project fnac_project = new Project(fnac_name, fnac_desc, fnac_client, fnac_tech, fnac_urls,
                fnac_thumb, fnac_fullimage, fnac_status, fnac_date);

            #endregion

            _myProjects.Add(veloce_project);
            _myProjects.Add(newsvore_project);
            _myProjects.Add(systran_project);
            _myProjects.Add(fnac_project);
        }
        
    }
}
